{%extends "base.xhtml"%}
{% load i18n %}
{% load ham %}
{%block content%}
	<h2>{%trans "Submit your solution"%}</h2>
	{% if form.has_errors %}
	{%trans "Correct following errors"%}
	{%endif%}

	<form method="post" action="{%href ""%}" enctype="multipart/form-data">
	<div>
		<label for="id_task">{%trans "Task system name"%}</label>
		{{ form.task }}
        	{% if form.task.errors %}*** {{ form.task.errors|join:", " }}{% endif %}
	</div>
	<div>
		<label for="id_compiler">{%trans "Compiler"%}</label>
		{{ form.compiler }}
        	{% if form.compiler.errors %}*** {{ form.compiler.errors|join:", " }}{% endif %}
	</div>
	<div>
		<label for="id_code">{%trans "File with solution"%}</label>
		{{ form.code }}
        	{% if form.code.errors %}*** {{ form.code.errors|join:", " }}{% endif %}
	</div>
	<input type="submit" value="{%trans "Submit solution"%}"/>
	</form>
{%endblock%}
